package com.foreveross.law.wps.service;

import org.springframework.ws.client.core.support.WebServiceGatewaySupport;
import org.springframework.ws.soap.client.core.SoapActionCallback;

/**
 * 
 * @author CZM
 *
 */
public class BaseWpsService extends WebServiceGatewaySupport{
	/**
	 * 发送请求调用webservice服务
	 * @param req
	 * @param soapAction
	 * @return
	 */
	public Object sendReq(Object req,String soapAction){
		return this.getWebServiceTemplate().marshalSendAndReceive(req, new SoapActionCallback(soapAction));
    }
}
